package com.zyong.design.pattern.observer.case2;

/**
 * @program: zyong-design-pattern
 * @ClassName: WeixinObserver
 * @author: zyong
 * @create: 2024-05-15 00:01
 */
public class WeixinUser implements Observer {
    private String name;

    public WeixinUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + ": " + message);
    }
}
